#ifndef __cplusplus
#include "stdlib.h"
#endif
#include "string.h"

#include "tolua++.h"




#include<iostream>

#include<luaMathEx/luaMathExUI.h>
#include<luaMathEx/luaInterpolation.h>
int main(void)
{

	double arrx[4],arry[4];
	int n=4;

	for(int i=0; i < n; i++ )
	{
		arrx[i]=i;
		arry[i]=i;
	}

	arrx[0]=5;arrx[1]=1;
	arry[0]=-360;arry[1]=-0;

	std::cout<< math::interpolation(2,arry,arrx,-30) << std::endl;
	return 1;
}
